package org.lex.io.filesystem;

public class TextDocumentFileFilter extends PostfixFileFilter {
	private static final TextDocumentFileFilter instance;
	private static final String[] extensions = { "a", "asm", "c", "cc", "cpp", "css", "h", "hpp", "htm", "html", "shtml", "ini", "java", "js", "log",
			"src", "txt", "xml" };

	static {
		instance = new TextDocumentFileFilter();
	}

	private TextDocumentFileFilter() {
		super();
		this.addExtension(extensions);
	}

	public static TextDocumentFileFilter getInstance() {
		return instance;
	}

	public static String[] getAllExtensions() {
		return extensions;
	}

	@Override
	public String getDescription() {
		return "Text Document( Source Code, Log File, etc.)";
	}

}
